package com.info.dpunified.dpgen;

import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.core.io.ClassPathResource;

import com.info.dpunified.common.exception.DPUnifiedException;
import com.info.dpunified.dpgen.service.DefectUploadService;


public class DefectUploader {


		/**
		 * @param args
		 * @throws DPUnifiedException 
		 */
		public static void main(String[] args) throws DPUnifiedException  
		{

			XmlBeanFactory beanFactory = new XmlBeanFactory(new ClassPathResource("spring-context.xml")) ;
			DefectUploadService defectUploadService =(DefectUploadService) beanFactory.getBean("defectUploadService");
			defectUploadService.insertDefects(null);
		}
			
}
